import { optionsToMap } from '@/utils'

export const groupManageStatusOptions = [
  { label: '空状态', value: 0 },
  { label: '未开始', value: 1 },
  { label: '进行中', value: 2 },
  { label: '已结束', value: 3 }
] as OptionItem[]

export const groupManageStatusMap = optionsToMap(groupManageStatusOptions)

export const groupStatusOptions = [
  { label: '全部', value: '' },
  { label: '拼团中', value: 1 },
  { label: '已拼成', value: 2 },
  { label: '未拼成', value: 3 }
] as OptionItem[]

export const groupStatusMap = optionsToMap(groupStatusOptions)

export const activityStatusOptions = [
  { label: '未发布', value: 0 },
  { label: '未开始', value: 1 },
  { label: '进行中', value: 2 },
  { label: '已结束', value: 3 }
] as OptionItem[]

export const activityStatusMap = optionsToMap(activityStatusOptions)

export const orderStatusOptions = [
  { label: '未支付', value: '0' },
  { label: '支付成功', value: '1' },
  { label: '订单关闭', value: '2' },
  { label: '订单完成', value: '3' },
  { label: '已退款', value: '4' }
] as OptionItem[]

export const orderStatusMap = optionsToMap(orderStatusOptions)
